﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Good_List.aspx.cs" Inherits="BBPA.Admin.SYS.Group_Buy.Good_List" MasterPageFile="~/List.Master" %>

<%@ MasterType VirtualPath="/List.Master" %>
<%@ Register Src="~/Controls/DDL_Brand.ascx" TagPrefix="uc1" TagName="DDL_Brand" %>
<%@ Register Src="~/Controls/DDL_Category_col.ascx" TagPrefix="uc2" TagName="DDL_Category_col" %>
<%@ Register Src="~/Controls/DDL_Supplier.ascx" TagPrefix="uc1" TagName="DDL_Supplier" %>



<asp:Content ID="c" ContentPlaceHolderID="cph_Top_Control" runat="server">
    <button class="btn btn-danger" href-right="Form.aspx" title="新建团购" quanxian="add">新建团购</button>
     <span id="is_top_search" runat="server"><input type="text" id="top_search_content"onkeypress="EnterPress(this,3,event)" onkeydown="EnterPress(this,3)" /> 
                    <input type="button" id="Button1" class="btn btn-danger" value="搜索" onclick="toplistsearch('gb')"/></span>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="head" runat="server">
    <script>
        trHeight = trH3;
        bodyWidth = 600;
    </script>
       <script src="../../js/webjs/groupbuy/good_list.js"></script>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="cph_th" runat="server">
    <th style="width: 60px">图片</th>
    <th>商品名称</th>
    <th id="th_Supplier" runat="server" class="hidden_M">供货商</th>
    <th id="th_BuyPrice" runat="server" class="hidden_M"><%=BBPA.Admin.Security.GetCurrentUserType() != EnumHelper.UserType.Supplier?"联盟进价":"售价" %></th>
    <th id="th_SellPrice" runat="server" class="hidden_M">售价</th>
    <th class="hidden_M">状态</th>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cph_td" runat="server">
    <td data-row-title="<%#Eval("Name") %>" >
        <img class="list_pic" src="<%#DataTypePlus.requestString( Eval("PicURL")).Replace("UploadFiles","UploadFiles/_thumbs") %>" data-width="<%#Eval("PicWidth") %>" data-height="<%#Eval("PicHeight") %>" onerror="$(this).hide();" /></td>
    <td><div class="intd"><%#Eval("Number") %> <%#Eval("BrandName") %> <%#Eval("Name") %> <%#Eval("Code") %></div></td>
    <td id="td_SupplierName" runat="server" class="hidden_M"><%#Eval("SupplierNumber") %><br><%#Eval("SupplierShortName") %></td>
    <td id="td_BuyPrice" runat="server" class="nowrap hidden_M">
        <%#StringPlus.showMoney( Eval("BuyPrice")) %><br>
        <a class="label <%#BBPA.BLL.Goods.HaveDiscountBuy_ing(Eval("id"))?"label-info":"" %>" href-list="/sys/Goods_SaleWay_Discount/list.aspx?GoodsID=<%#Eval("id") %>" title="<%#Eval("Name") %>折扣优惠" target="_blank">折</a>
        <a class="label <%#BBPA.BLL.Goods.HaveGiftNumberBuy_ing(Eval("id"))?"label-info":"" %>" href-list="/sys/Goods_SaleWay_GiftNumber/list.aspx?GoodsID=<%#Eval("id") %>" title="<%#Eval("Name") %>满赠优惠" target="_blank">赠</a>
    </td>
    <td id="td_SellPrice" runat="server" class="nowrap hidden_M">
        <%#StringPlus.showMoney( Eval("SellPrice"))%><br>
        <a class="label <%#BBPA.BLL.Goods.HaveDiscountSell_ing(Eval("id"))?"label-info":"" %>" href-list="/sys/Goods_SaleWay_Discount/list.aspx?GoodsID=<%#Eval("id") %>" title="<%#Eval("Name") %>折扣优惠" target="_blank">折</a>
        <a class="label <%#BBPA.BLL.Goods.HaveGiftNumberSell_ing(Eval("id"))?"label-info":"" %>" href-list="/sys/Goods_SaleWay_GiftNumber/list.aspx?GoodsID=<%#Eval("id") %>" title="<%#Eval("Name") %>满赠优惠" target="_blank">赠</a>
    </td>
    <td class="hidden_M"><%#(bool)Eval("IsPromo")?"推荐":"" %><br>
        <%#(EnumHelper.GoodsState)DataTypePlus.requestInt( Eval("State"))!=EnumHelper.GoodsState.Nomal?EnumHelper.GetEnumDescription((EnumHelper.GoodsState)DataTypePlus.requestInt( Eval("State"))):"" %>
        <%#(bool)Eval("IsOffShelf")?"下架":"" %></td>

</asp:Content>
<asp:Content ID="con_listControls" ContentPlaceHolderID="cph_listControls" runat="server">
    <a href="###" href-list="/sys/User_Operate_Log/list.aspx?Tablename=Goods&RowID=<%#Eval("id") %>" title="<%#Eval("Name") %>操作记录" target="_blank">操作记录</a>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cph_formControls" runat="server">
    <a href="javascript:;"  title="<%#Eval("Number") %> <%#Eval("BrandName") %> <%#Eval("Name") %> <%#Eval("Code") %>"  id="<%# Eval("id") %>" onclick="addgood(this,'<%# Eval("id") %>')" imgsrc="<%#DataTypePlus.requestString( Eval("PicURL")).Replace("UploadFiles","UploadFiles/_thumbs") %>" img-data-width="<%#Eval("PicWidth") %>" img-data-height="<%#Eval("PicHeight") %>"  sellprice="<%# Convert.ToDouble(Eval("SellPrice"))%>">添加</a>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="cph_search" runat="server">
    <div class="control-group">
        <label>商品名/编号/型号/品牌</label>
        <asp:TextBox ID="search_text_fuzzy" runat="server"></asp:TextBox>
    </div>
    <div class="control-group">
        <label>品牌</label>
        <uc1:DDL_Brand runat="server" ID="search_select_brand" NeedLeaderWork="true" />
    </div>
    <div class="control-group" id="group_search_supplier" runat="server">
        <label>供货商</label>
        <uc1:DDL_Supplier runat="server" ID="search_select_supplier" NeedLeaderWork="true" />
    </div>
    <div class="control-group">
        <label>分类</label><uc2:DDL_Category_col runat="server" ID="search_select_category" NeedLeaderWork="true" />
    </div>
    <div class="control-group">
        <label>来源</label>
        <asp:DropDownList ID="search_select_comefrom" runat="server" data-noselect2="1">
            <asp:ListItem Selected="True" Value="">全部</asp:ListItem>
                <asp:ListItem Value="1">国产</asp:ListItem>
                <asp:ListItem Value="2">国标进口</asp:ListItem>
                <asp:ListItem Value="3">海外直邮</asp:ListItem>
            </asp:DropDownList>
    </div>
    <div class="control-group RadioButtonList">
        <label></label>
        <asp:RadioButtonList ID="search_radio_state" runat="server"  RepeatDirection="Horizontal" RepeatLayout="Flow" NeedLeaderWork="true">
            <asp:ListItem Text="全部" Value="" Selected="True"></asp:ListItem>
            <asp:ListItem Text="已审核" Value="1" ></asp:ListItem>
            <asp:ListItem Text="未审核" Value="2" ></asp:ListItem>
        </asp:RadioButtonList>
    </div>
    <div class="control-group RadioButtonList">
        <label></label>
        <asp:CheckBox ID="search_check_sellway" runat="server" Text="活动商品" />
    </div>
</asp:Content>